package indi.zhifa.recipe.bailan5.coupon.entity.dto;

import indi.zhifa.recipe.bailan5.coupon.entity.enums.ECouponTriggerType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

@Data
public class CouponDto {
    @Schema(title = "消费券名")
    private String name;

    @Schema(title = "生效条件类型")
    private ECouponTriggerType effectType;

    @Schema(title = "生效条件值")
    private Double effectVal;

    @Schema(title = "优惠类型")
    private ECouponTriggerType bargainType;

    @Schema(title = "优惠值")
    private Double bargainVal;

    @Schema(title = "库存")
    private Integer storage;

    @Schema(title = "用户最大领取数")
    private Integer userGetMax;

    @Schema(title = "超时日期")
    private LocalDate expireDate;
}
